<div class="box-tools" style="top:10px;">
    <form class="form-inline" id="project—form" action="{:url('ProjectSide/MemberDuiFu')}" method="GET" pjax-search="">
        <div class="form-group">
            <label for="project_id">项目名称</label>
            <select class="form-control" name="project_id" id="project_id" style="border-radius:3px;">
                <option value="0">全部</option>
                {volist name="projectList" id="vo"}
                <option value="{$vo.id}" {if condition="$vo.id eq $projectId"}selected="selected"{/if} >{$vo.project_name}</option>
                {/volist}
            </select>
        </div>
        <div class="form-group">
            <label for="order_sn">订单号</label>
            <input type="text" name="order_sn" id="order_sn" class="form-control" style="border-radius:3px;"
                   value="{:input('get.order_sn')}" />
        </div>
        <div class="form-group">
            <label for="order_sn">备注</label>
            <input type="text" name="remarks" id="remarks" class="form-control" style="border-radius:3px;"
                   value="{:input('get.remarks')}" />
        </div>
        <div class="form-group">
            <label for="status">状态</label>
            <select class="form-control" id="status" name="status" style="border-radius:3px;">
                <option value="0">全部</option>
                <option value="1" {if condition="$status eq 1" }selected="selected" {/if} >未兑付</option>
                <option value="2" {if condition="$status eq 2" }selected="selected" {/if} >已兑付</option>
            </select>
        </div>

        <div class="form-group">
            <button type="submit" class="btn btn-primary ">搜索</button>
            <button type="button" id="dwonload" class="btn btn-primary ">下载</button>
            <button type="button" class="btn btn-primary" onclick="resetForm()">重置</button>
        </div>
    </form>
</div>
<script>
    $(function () {
        $('#dwonload').click(function () {
             var url = "{:url('ProjectSide/MemberDuiFu')}";
             var project_id = $("select[name='project_id']").val();
             var status = $("select[name='status']").val();
             var order_sn = $("input[name='order_sn']").val();
            var  remarks =  $("input[name='remarks']").val();
             location.href = url + "?project_id=" + project_id + "&status=" + status + "&order_sn=" + order_sn +"&remarks=" + remarks + "&down=1";
        })
    })
    function resetForm() {
        $('select[name="status"]').val('0')
        $('input[name="order_sn"]').val('')
        $('input[name="remarks"]').val('')
        $('select[name="project_id"]').val('0')
        $('#project—form').submit()
    }
</script>
